const express = require('express');
const router = express.Router();

router.get('/forDealerServiceInformation', (req, res) => {
    const content = [];
    for(let i = 0; i < 100; i++) content.push({
        id: `id${i}`,
        userName: `userName${i}`,
        name: `name${i}`
    });

    res.json({
        message: 'ok',
        payload: {
            content,
            totalElements: 40,
        }
    });
});

router.get('/simple', (req, res) => {
    const content = [];
    for(let i = 0; i < 5; i++) content.push({
        id: `${i + 1}`,
        userName: `201900${i}`,
        name: `张老${i}`,
    });
    res.json({
        message: '',
        payload: {
            content,
            totalElements: 5,
        }
    });
});

module.exports = router;
